﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LoginUC.ascx.cs" Inherits="PASNew.U.Controls.Login" %>
<div class="loginsilo">
<h1>Welcome</h1>
<b class="blacktext">Please enter your email address and password to access the system.</b>
<asp:Panel runat="server" ID="pnlLogin" DefaultButton="LBLogin">
<p>
    <asp:Label ID="lblEmail" runat="server" Text="Email Address" AssociatedControlID="txtBoxEmail"></asp:Label>
    <br />
    <asp:TextBox ID="txtBoxEmail" runat="server" CssClass="textbox"></asp:TextBox>
    <asp:RequiredFieldValidator ID="EmailCheck" runat="server" ErrorMessage="Input your email address"
        ForeColor="black" ControlToValidate="txtBoxEmail" Display="Dynamic"></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator ID="EFormatCheck" runat="server" ErrorMessage="Input a valid email address"
    ControlToValidate="txtBoxEmail" ForeColor="black" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
</p>

<p>
<asp:Label ID="lblPassword" runat="server" Text="Password" AssociatedControlID="txtBoxPassword"></asp:Label>
<br />
<asp:TextBox ID="txtBoxPassword" runat="server" TextMode="Password" CssClass="textbox"
    BorderStyle="Solid"></asp:TextBox>
<asp:RequiredFieldValidator ID="PasswordCheck" runat="server" ErrorMessage="Input your password"
    ForeColor="black" ControlToValidate="txtBoxPassword" Display="Dynamic"></asp:RequiredFieldValidator>
</p>

<p>
<asp:Button ID="LBLogin" runat="server" OnClick="LBLogin_Click" CssClass="button" Text="Login"/><br />
<asp:HyperLink ID="SignUp" runat="server" NavigateUrl="~/Contact.aspx" ToolTip="Click here to sign up"
    ForeColor="Black">Not a member? Sign up!</asp:HyperLink>
</p>


<asp:Label ID="lblUnsuccessfull" runat="server" Text="Incorrect username or password."
    ForeColor="black" Visible="False"></asp:Label>

</asp:Panel>
</div>